arm64: Fix layerscape mmu setup
authorAlexander Graf <[email protected]>
Mon, 21 Mar 2016 19:26:12 +0000 (20:26 +0100)
committerYork Sun <[email protected]>
Mon, 21 Mar 2016 19:42:10 +0000 (12:42 -0700)
commitc05016ab0b122b28395f0532e6447e5ec2705fe9
treecd252c3b68cd8b6024259c6b50f52325f32d9da3
parentf23baa572f96e1e13d7f1a3c8addb61b5d0dbd29
arm64: Fix layerscape mmu setup

With commit 7985cdf we converted all systems except for the Layerscape
SoCs to the generic descriptor table based page table setup.

On the Layerscape SoCs however, we just provide an empty table stub
and do the setup ourselves. To reserve enough memory for the tables,
we need to override the default counting mechanism which would end up
with an empty table because we have no maps.

Fixes: 7985cdf
Reported-by: York Sun <[email protected]>
CC: Alison Wang <[email protected]>
CC: Prabhakar Kushwaha <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
Tested-by: York Sun <[email protected]>
Reviewed-by: York Sun <[email protected]>
arch/arm/cpu/armv8/cache_v8.c
arch/arm/cpu/armv8/fsl-layerscape/cpu.c